import { uniRequest } from '@/utils/request'

export const xcxAuthCode2Session = (data) => {//用户授权 （C端）
	return uniRequest('xcxAuthCode2Session', 'POST', data);
};

export const getWxPhone = (data) => {//获取手机号 （C端）
	return uniRequest('getWxPhone', 'POST', data);
};

export const isMemberGetTeaList = (data) => {//获取所有开业茶室列表
	return uniRequest('isMemberGetTeaList', 'GET', data);
}

export const isMemberGetTeaRoomList = (data) => {//获取茶室对应开放房间列表
	return uniRequest('isMemberGetTeaRoomList', 'GET', data);
}

export const buriedPoint = (data) => {//埋点-在用户点击进入茶室或点击茶室进入房间时请求
	return uniRequest('buriedPoint', 'POST', data);
};

export const getTeabalance = function(data) {//用户获取店铺余额信息
	return uniRequest('getTeabalance', 'GET', data);
}

export const getRechargeMemberInfo = function(data) {//用户获取充值信息及文字提示（C端）
	return uniRequest('getRechargeMemberInfo', 'GET', data);
}

export const toWechatpayment = function(data) {//用户充值生成充值信息（C端）
	return uniRequest('toWechatpayment', 'POST', data);
}

export const getRechargeMemberList = function(data) {//用户获取充值明细（C端）
	return uniRequest('getRechargeMemberList', 'GET', data);
}

export const getRoomDetail = function(data) {//获取房间已预约时间接口
	return uniRequest('getRoomDetail', 'GET', data);
}

export const unifiedOrder = function(data) {//下单接口
	return uniRequest('unifiedOrder', 'POST', data);
}

export const getShopCardruleList = function(data) {//获取可购买会员卡列表
	return uniRequest('getShopCardruleList', 'GET', data);
}

export const toCardruleWechatpayment = function(data) {//购买会员卡
	return uniRequest('toCardruleWechatpayment', 'POST', data);
}

export const getMemberCardruleInfo = function(data) {//获取我的会员卡基础信息
	return uniRequest('getMemberCardruleInfo', 'GET', data);
}

export const getMemberCardruleList = function(data) {//获取我的会员卡购买历史信息
	return uniRequest('getMemberCardruleList', 'GET', data);
}

export const getMemberOrderList = function(data) {//获取用户名下的订单列表
	return uniRequest('getMemberOrderList', 'GET', data);
}

export const getTeaRoomSetMeal = function(data) {//获取房间下挂的套餐列表
	return uniRequest('getTeaRoomSetMeal', 'GET', data);
}

export const getTaeRoomDataInfo = function(data) {//获取房间详情信息 传tid 传rid  返回房间信息 其中额外包含 card_discount 会员卡折扣 tname茶室名称
	return uniRequest('getTaeRoomDataInfo', 'GET', data);
}

export const isOrderDrawback = function(data) {//退款
	return uniRequest('isOrderDrawback', 'POST', data);
}

export const useTheOrder = function(data) {//使用订单
	return uniRequest('useTheOrder', 'POST', data);
}

export const getUnusedOrder = function(data) {//获取已支付【待使用、使用中】的订单（适用于一键适用前获取）
	return uniRequest('getUnusedOrder', 'POST', data);
}

export const bindAvatarName = function(data) {//新增一个修改头像昵称接口（参考挪车 一摸一样）（C端）
	return uniRequest('bindAvatarName', 'POST', data);
}

export const getMyInviteCode = function(data) {//分享邀请
	return uniRequest('getMyInviteCode', 'GET', data);
}

export const getMyInviteList = function(data) {//获取我的邀请列表（C端）
	return uniRequest('getMyInviteList', 'GET', data);
}

export const getMemberlist = function(data) {//获取用户基本信息
	return uniRequest('getMemberlist', 'GET', data);
}

export const getMemberRewardList = function(data) {//分享奖励收益明细（C端）
	return uniRequest('getMemberRewardList', 'GET', data);
}

export const completeToOrder = function(data) {//用户结束订单（手动完成）
	return uniRequest('completeToOrder', 'POST', data);
}

export const gethaveUnusedOrder = function(data) {//（未用到此接口）获取已支付已使用（POST 传token）传：1 未使用 2 已使用 3 已完成 4 已取消
	return uniRequest('gethaveUnusedOrder', 'POST', data);
}

export const getcity = function(data) {//首页左上角选择城市
	return uniRequest('getcity', 'GET', data);
}

export const collectData = function(data) {//收集信息接口
	return uniRequest('collectData', 'POST', data);
}

export const getBannmerApiPosition = function(data) {//C端获取轮播图
	return uniRequest('getBannmerApiPosition', 'GET', data);
}

export const isTimeCanMake = function(data) {//点击“马上使用”判断此房间现在时间是否可预订
	return uniRequest('isTimeCanMake', 'POST', data);
}

export const isPossibleRenewTheOrder = function(data) {//续单时返回最大可续小时数
	return uniRequest('isPossibleRenewTheOrder', 'POST', data);
}

export const getMemberMsgList = function(data) {//获取消息
	return uniRequest('getMemberMsgList', 'GET', data);
}

export const isMsgRead = function(data) {//消息标记已读
	return uniRequest('isMsgRead', 'GET', data);
}

export const isMemberGetTeaDetail = function(data) {//获取茶室详情
	return uniRequest('isMemberGetTeaDetail', 'GET', data);
}

export const reToGetWechatpaymentInfo = function(data) {//订单重新支付
	return uniRequest('reToGetWechatpaymentInfo', 'POST', data);
}

export const getMemberNoticeInfo = function(data) {//获取滚动文字
	return uniRequest('getMemberNoticeInfo', 'GET', data);
}

export const memberOpenDoor = function(data) {//c端开门
	return uniRequest('memberOpenDoor', 'POST', data);
}

export const getSwitchCode = function(data) {//使用中订单获取分享码（使用中订单可以分享）
	return uniRequest('getSwitchCode', 'POST', data);
}

export const isCodeToSwitch = function(data) {//分享码请求开门通电(使用中订单)
	return uniRequest('isCodeToSwitch', 'POST', data);
}

export const memberGetOrderDetail = function(data) {//获取用户的订单信息
	return uniRequest('memberGetOrderDetail', 'GET', data);
}

export const getRoomDetailNew = function(data) {//获取用户的订单信息
	return uniRequest('getRoomDetailNew', 'GET', data);
}

export const memberGetMemberCard = function(data) {//用户领取会员卡
	return uniRequest('memberGetMemberCard', 'POST', data);
}

export const getOffMemberNotice = function(data) {//前台获取公告
	return uniRequest('getOffMemberNotice', 'GET', data);
}

export const getMemberCardTasks = function(data) {//C端获取领取任务列表
	return uniRequest('getMemberCardTasks', 'GET', data);
}

export const memberDrawCardTasks = function(data) {//C端领取任务
	return uniRequest('memberDrawCardTasks', 'POST', data);
}